<!DOCTYPE html>
<html>
<head>
  <title><%=t('application.title')%></title>
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
  <meta name='loginza-verification' content='4ae29a920f04a7d7d6e56d6562a3f1d0' />
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="brand" href="#"><%=t('application.title')%></a>
          <div class="nav-collapse">
            <ul class="nav">
              <li>
                <%= link_to t('menu.top.main'), root_path %>
              </li>
              <li>
                <a href="#about"><%=t('menu.top.about')%></a>
              </li>
              <li>
                <a href="#contact"><%=t('menu.top.contacts')%></a>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
    <div class="container-fluid">
      <%if !current_user.nil? %>
        <div class="row-fluid">
          <div class="span12">
            <%=render 'common/menu'%>
          </div>
        </div>
        <div class="row-fluid">
          <div class="span12">
            <%= yield %>
          </div>
        </div>
      <%else%>
        <%= yield %>
      <%end%>

      <hr>
      <footer>
        <p>&copy; <%=t('application.copyright')%></p>
      </footer>
    </div>
</body>
</html>
